<div class="account-edit">

	<?php $this->renderPartial('//common/user_one', array(
		'user' => $user,
		'image_width' => 160, 
		'image_height' => 160,
		'layout' => array('image', 'title', 'upload_image'),
	));	?>
	
	<section class="block">
		<h1 class="block-title">My Account</h1>
		
		<div class="block-content">

			<?php $form = $this->beginWidget('CActiveForm', array(
				'id' => 'account-form',
				'action' => $this->createUrl('/user/account'),
				'enableClientValidation' => false,
				'clientOptions' => array(
					'validateOnSubmit' => true,
				),
				'htmlOptions' => array(
//						'class' => 'cm-ajax',
				),
			)); ?>
			<div class="form-sections">

				<div class="form-section">
					<h3 id="account-info">1. Information</h3>

<!--					<div class="form-field form-field-inline row">
						<?php echo $form->labelEx($model, 'seo_name'); ?>
						<?php echo $form->textField($model, 'seo_name', array('class' => 'input-text', 'placeholder' => $model->getAttributeLabel('seo_name'))); ?>
						<br /><span style="font-style: italic; font-size: 11px;">Chỉ cho phép các kí tự: a-z  0-9  _  - .</span>
						<?php echo $form->error($model, 'seo_name'); ?>
					</div>-->
					
					<div class="form-field form-field-inline row">
						<?php echo $form->labelEx($model, 'name'); ?>
						<?php echo $form->textField($model, 'name', array('class' => 'input-text', 'placeholder' => $model->getAttributeLabel('name'))); ?>
						<?php echo $form->error($model, 'name'); ?>
					</div>

					<div class="form-field form-field-inline row">
						<?php echo $form->labelEx($model, 'birthday'); ?>
						<div class="select-field">
							<?php echo $form->dropDownList($model, 'dob_day', getDateOptions('d')) ?>
							<?php echo $form->dropDownList($model, 'dob_month', getDateOptions('m')) ?>
							<?php echo $form->dropDownList($model, 'dob_year', getDateOptions('Y')) ?>
						</div>
						<?php echo $form->error($model, 'dob_day'); ?>
						<?php echo $form->error($model, 'dob_month'); ?>
						<?php echo $form->error($model, 'dob_year'); ?>
					</div>

					<div class="form-field form-field-inline row">
						<?php echo $form->labelEx($model, 'phone'); ?>
						<?php echo $form->textField($model, 'phone', array('class' => 'input-text', 'placeholder' => $model->getAttributeLabel('phone'))); ?>
						<?php echo $form->error($model, 'phone'); ?>
					</div>

					<div class="form-field form-field-inline row">
						<?php echo $form->labelEx($model, 'gender'); ?>
						<div class="select-field">
							<?php
							echo $form->radioButtonList($model, 'gender', array(
									'M' => t('Male'),
									'F' => t('Female'),
									'O' => t('N/A'),
								), array(
									'separator' => '&nbsp;&nbsp;',
									'class' => 'radio',
								));
							?>
						</div>
					</div>

					<div class="form-field form-field-inline row">
						<?php echo $form->labelEx($model, 'email'); ?>
						<?php echo $form->textField($model, 'email', array('class' => 'input-text', 'readonly' => 'readonly', 'disabled' => 'disabled', 'placeholder' => $model->getAttributeLabel('name'))); ?>
						<?php echo $form->error($model, 'email'); ?>
					</div>

				</div>
			</div>

			<div class="text-right">
				<?php echo CHtml::submitButton('Save', array('class' => 'button button2', 'style' => '')); ?>
			</div>
			
			<?php $this->endWidget(); ?>

		</div>
	</section>
	
</div>